{% extends 'admin_dashboard.html' %}
{% block content %}
<div class="card">
  <h2>重置银行卡密码</h2>
  <p>为卡号 <strong>{{ card.cardID }}</strong> 设置新的取款密码：</p>

  <form method="post" class="form-container">
    <table class="table">
      <tr>
        <td><label for="new_pass">新密码：</label></td>
        <td><input type="pass" name="new_pass" required></td>
      </tr>
      <tr>
        <td><label for="confirm_pass">确认密码：</label></td>
        <td><input type="pass" name="confirm_pass" required></td>
      </tr>
    </table>

    <div style="margin-top: 20px;">
      <button type="submit" class="btn">确认重置</button>
      <a href="{{ url_for('cards') }}" class="btn" style="margin-left: 10px;">返回列表</a>
    </div>

    {% if message %}
      <p style="color: green; margin-top: 10px;">{{ message }}</p>
    {% endif %}
  </form>
</div>
{% endblock %}
